#include <stdio.h>

int main() {
	int a32[2];
	
	printf("输入两个 32 位数据：\n");
	scanf("%d %d", &a32[0], &a32[1]);
	
	short a16[2];
	char a8[2];
	
	for (int i = 0; i < 2; i++) 
	{
		a16[i] = (short)a32[i];
		
		a8[i] = (char)a32[i];
		
		printf("16 位数据：%d  8 位数据：%d\n", a16[i], a8[i]);
	}
	return 0;
}
